home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / compress / gnucpio.zip / MAKEFILE.PC < prev    next >
Text File  |  1994-11-30  |  2KB  |  56 lines

  1. # MS-DOS makefile for GNU cpio.
  2. # Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. # no more optimizations for MS C 6.00 than -Olt
  19. # otherwise it produces bad code!
  20.  
  21. CC = bcc
  22. MODEL = s
  23. DEFS = -DSTDC_HEADERS=1 -DHAVE_VPRINTF -DHAVE_STRERROR -DNO_REMOTE -Dmain=_main
  24. CFLAGS = -m$(MODEL) -I. $(DEFS)
  25. LDFLAGS = -m$(MODEL)
  26. LIBS =
  27. OBJS = copyin.obj copyout.obj copypass.obj defer.obj dstring.obj fnmatch.obj \
  28. global.obj main.obj tar.obj util.obj error.obj getopt.obj getopt1.obj \
  29. filemode.obj version.obj alloca.obj xmalloc.obj xstrdup.obj \
  30. makepath.obj bcopy.obj dirname.obj stripslash.obj tcexparg.obj
  31.  
  32. all:    cpio.exe
  33.  
  34. cpio.exe:    $(OBJS)
  35.     $(CC) -ecpio.exe $(LDFLAGS) *.obj $(LIBS)
  36.  
  37. .c.obj:
  38.     $(CC) -c $(CFLAGS) $<
  39.  
  40. # Need to use -A to get __STDC__ defined, but the other files can't
  41. # use -A because they use MS-DOS non-ANSI things.  Turbo C is stupid.
  42. error.obj: error.c
  43.     $(CC) -c -A $(CFLAGS) error.c
  44.  
  45. copyin.obj: cpio.h cpiohdr.h dstring.h extern.h filetypes.h fnmatch.h rmt.h system.h
  46. copyout.obj: cpio.h cpiohdr.h dstring.h extern.h filetypes.h rmt.h system.h
  47. copypass.obj: cpio.h cpiohdr.h dstring.h extern.h filetypes.h system.h
  48. dstring.obj: dstring.h
  49. global.obj: cpio.h cpiohdr.h dstring.h extern.h system.h
  50. main.obj: cpio.h cpiohdr.h dstring.h extern.h filetypes.h rmt.h
  51. tar.obj: filetypes.h cpio.h cpiohdr.h dstring.h extern.h rmt.h tar.h tarhdr.h system.h
  52. util.obj: extern.h rmt.h system.h
  53.  
  54. clean:
  55.     rm cpio.exe *.obj
  56.